#include <QCoreApplication>
#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    int A,B,C;
      cout << "Vvedite chislo A:   "<<endl;
      cin >> A;
      cout << "Vvedite chislo B   (A>B):        "<<endl;
      cin >> B;

      if(B > A) C = 0;
      else
      {
        C = 0;
        while(A > B)
        {
          A -= B;
          C++;
        }
      }
      cout << "Kolichestvo otrezkov:   "<<C<<endl;

    return a.exec();
}
